var express = require('express');
var router = express.Router();

const { addUser, login, delUser,uploadUserAvatar, changeUserInfo, getAllUsers, getUserByID, changeBalance ,verifyID,approveID,rejectID,changeFrozenStatus,addCarToWishlist} = require("../controllers/userCon")

router.post('/addUser', addUser)
router.post("/login", login)
router.post("/delUser", delUser)
router.post("/changeUserInfo", changeUserInfo)
router.post("/getAllUsers", getAllUsers)
router.post("/getUserByID", getUserByID)
router.post("/changeBalance", changeBalance)
router.post("/verifyID",verifyID)
router.post("/approveID",approveID)
router.post("/rejectID",rejectID)
router.post("/changeFrozenStatus",changeFrozenStatus)
router.post("/addCarToWishlist",addCarToWishlist)
router.post("/uploadUserAvatar",uploadUserAvatar)


module.exports = router;